import request from '@/utils/request'

// 查询营地表列表
export function listCamp(query) {
  return request({
    url: '/wechat/camp/list',
    method: 'get',
    params: query
  })
}

// 查询营地表详细
export function getCamp(campId) {
  return request({
    url: '/wechat/camp/' + campId,
    method: 'get'
  })
}

// 新增营地表
export function addCamp(data) {
  return request({
    url: '/wechat/camp',
    method: 'post',
    data: data
  })
}

// 修改营地表
export function updateCamp(data) {
  return request({
    url: '/wechat/camp',
    method: 'put',
    data: data
  })
}

// 删除营地表
export function delCamp(campId) {
  return request({
    url: '/wechat/camp/' + campId,
    method: 'delete'
  })
}
